# 案例
import gevent
from gevent import monkey
monkey.patch_all()
import requests
def download(url):
    response=requests.get(url)
    content=response.text
    print("下载了{},长度{}".format(url,len(content)))



if __name__=="__main__":
    urls=[""]
    g1=gevent.spawn(download,args=url[0])
    g2=gevent.spawn(download,args=url[1])
    g3=gevent.spawn(download,args=url[2])
    gevent.joinall(g1,g2,g3)            #一起阻塞的方法
